For example, if you would only like to view the buffer pool hit ratio then you can right click on the graph-> Add/ Remove Performance Counters-> Resource Monitoring Counter and select only the pool hit ratio counter. 例如,如果只想查看缓冲池命中率,那么可以右键单击该图->Add/RemovePerformanceCounters->ResourceMonitoringCounter并只选择池命中率计数器。
Click on the Explain button for a detailed explanation of each counter. 单击Explain按钮,可以看到每个计数器的详细说明。
Listing 1 shows HTML/ JavaScript source code to create this button, to add a handler function to process the button click event, to increment the counter, and, finally, to publish our event. 清单1显示了相关的HTML/JavaScript源代码,可使用这些源代码创建该按钮,添加处理程序函数以处理按钮点击事件,使计数器上的数字可以根据点击事件进行递增,并最终发布我们的事件。
In the designer, double-click the increase custom counter by a value button to create the click event handler in the code editor. 在设计器中,双击“将自定义计数器增加一个值”按钮以在代码编辑器中创建click事件处理程序。